package com.huang.mvvm.control

import android.content.Context
import androidx.lifecycle.LifecycleOwner

/**
 * 控制别人的控制者
 */
interface IController : LifecycleOwner {
     fun showLoading(
        isOutsideEnable: Boolean,
        isBackEnable: Boolean,
        onCanceledListener: (() -> Unit)?
    )

     fun hideLoading()

     fun showMessage(text: String)

     fun onDestroyController()

    fun getContext(): Context?
}